package com.fr.chart.marker;

import com.fr.base.core.GraphHelper;
import java.awt.Graphics2D;
import java.awt.geom.GeneralPath;

public class DiamondFilledMarker extends Marker
{
  private static final long serialVersionUID = 7279284137400248019L;

  public void paintMarker(Graphics2D paramGraphics2D, double paramDouble1, double paramDouble2)
  {
    double[] arrayOfDouble1 = { paramDouble1 - this.size, paramDouble1, paramDouble1 + this.size, paramDouble1 };
    double[] arrayOfDouble2 = { paramDouble2, paramDouble2 - this.size, paramDouble2, paramDouble2 + this.size };
    GeneralPath localGeneralPath = new GeneralPath(1, arrayOfDouble1.length);
    localGeneralPath.moveTo((float)arrayOfDouble1[(arrayOfDouble1.length - 1)], (float)arrayOfDouble2[(arrayOfDouble1.length - 1)]);
    for (int i = 0; i < arrayOfDouble1.length; ++i)
      localGeneralPath.lineTo((float)arrayOfDouble1[i], (float)arrayOfDouble2[i]);
    GraphHelper.fill(paramGraphics2D, localGeneralPath);
  }

  public String getMarkerType()
  {
    return "DiamondFilledMarker";
  }
}